Component({
  externalClasses: ['custom-class'],
  properties: {
    tagList: { type: Array },
    item: { type: Object },
    unit: { type: String },
    btnType: { type: String },
    index: { type: Number },
    subindex: { type: Number },
  },
  data: {

  },
  methods: {
    // 点击tag时向父组件触发事件传值
    onClickTag(event) {
      const { item, num } = event.currentTarget.dataset;
      console.log(this.data, 'dd');
      const { btnType, index, subindex } = this.data;
      this.triggerEvent('onClickTag', {
        item,
        num,
        btnType,
        index,
        subindex 
      });
    },
    
  },
})
